/**
 * <p>Title: Material.java</p>
 * <p>Description: </p>
 * <p>Copyright: Baosight Software LTD.co Copyright (c) 2002</p>
 * <p>Company: Baosight Software</p>
 * @author 贾雪民
 * @version 1.0
 * <pre>Histroy:
 *          2011-6-7 下午03:34:52  贾雪民  Create
 *</pre>
 */
package com.baosight.sczx.common.zm.cInterface.cm;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import com.baosight.iplat4j.core.spring.SpringApplicationContext;
import com.baosight.iplat4j.dao.Dao;

/**
 * <p>Title: Material.java</p>
 * <p>Description: </p>
 * <p>Copyright: Baosight Software LTD.co Copyright (c) 2002</p>
 * <p>Company: Baosight Software</p>
 * @author 贾雪民
 * @version 1.0
 * <pre>Histroy:
 *          2011-6-7 下午03:34:52  贾雪民  Create
 *</pre>
 */
public class Material {
	
	private static Dao dao = (Dao)SpringApplicationContext.getBean("dao");
	
	@SuppressWarnings({ "unchecked", "rawtypes" })
	public static List<Map> getMateroalNames(Map<String, String> map,String sql){
		List<Map> _list = new ArrayList<Map>();
		try {
			_list = dao.query(sql, map);
		} catch (Exception e) {
			return _list;
		}
		return _list;
	}
}